package com.gdcn.zb.sys.dao.impl;

import java.util.List;
import com.gdcn.zb.base.BaseDao;
import com.gdcn.zb.base.exception.DaoException;
import com.gdcn.zb.sys.dao.ITypeTargetDao;
import com.gdcn.zb.sys.valueobject.TypeTarget;

public class TypeTargetDaoHibernate extends BaseDao implements ITypeTargetDao{

	public void createTypeTarget(TypeTarget typeTarget) throws DaoException {
		super.doCreateObject(typeTarget);
		
	}

	public void deleteTypeTarget(TypeTarget typeTarget) throws DaoException {
		super.doDeleteObject(typeTarget);
		
	}

	public void deleteTypeTarget(int id) throws DaoException {
		super.doDeleteObject(id);
	}

	public TypeTarget findTypeTargetById(int id) throws DaoException {
		return (TypeTarget)super.doFindObjectById(id);
	}

	public List listTypeTargetOfAll() throws DaoException {
		return doListAllObject();
	}


	public void updateTypeTarget(TypeTarget typeTarget) throws DaoException {
		super.doUpdateObject(typeTarget);
		
	}

	protected Class getModelClass() {
		return TypeTarget.class;
	}

}
